<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui">
<h:head>
	<title>Title</title>
</h:head>
<h:body>
	<div id="header"></div>
	<div id="content">
		<h:form id="form">
			<p:themeSwitcher initialText="Cambia Skin" buttonPreText="Skin: " />
			<p:panel header="Test PrimeFaces" footer="Un test per..."
				toggleable="true" closable="true">
				<h:outputText value="PrimeFaces su AppuntiSoftware.it  ..." />
				<p:spinner value="0" min="0" max="100" />
				<p:calendar mode="inline" locale="it" />
			</p:panel>
			<p:dataTable  var="utente" value="#{utentiBean.utenti}" id="tbl"
				selection="#{utentiBean.utente}" selectionMode="single"
				update="updForm:updDisplay" onselectComplete="updDialog.show()"
				paginator="true" rows="5">
				<p:column>
					<f:facet name="header">
						<h:outputText value="Nome" />
					</f:facet>
					<h:outputText value="#{utente.nome}" />
				</p:column>
				<p:column>
					<f:facet name="header">
						<h:outputText value="Cognome" />
					</ef:facet>
					<h:outputText value="#{utente.cognome}" />
				</p:column>
				<p:column>
					<f:facet name="header">
						<h:outputText value="Telefono" />
					</f:facet>
					<h:outputText value="#{utente.telefono}" />
				</p:column>
				
				<f:facet name="footer">

                     <h:panelGroup>
						<h:commandLink>
							<p:graphicImage value="/images/excel.png" style="border:none" />
							<p:dataExporter type="xls" target="tbl" fileName="contacts"
								pageOnly="true" />
						</h:commandLink>

						<h:commandLink>
							<p:graphicImage value="/images/pdf.png" style="border:none" />
							<p:dataExporter type="pdf" target="tbl" fileName="contacts"
								pageOnly="true" />
						</h:commandLink>

						<h:commandLink>
							<p:graphicImage value="/images/csv.png" style="border:none" />
							<p:dataExporter type="csv" target="tbl" fileName="contacts"
								pageOnly="true" />
						</h:commandLink>

						<h:commandLink>
							<p:graphicImage value="/images/xml.png" style="border:none" />
							<p:dataExporter type="xml" target="tbl" fileName="contacts"
								pageOnly="true" />
						</h:commandLink>
					
                    </h:panelGroup>
				</f:facet>
			</p:dataTable>
		</h:form>
		<p:accordionPanel>
			<p:tab title="First Tab Title">
				<a href="prova.xhtml"><h:outputText value="Lorem" /> 
				</a>
			</p:tab>
			<p:tab title="Second Tab Title">
				<h:outputText value="Ipsum" />
			</p:tab>
		</p:accordionPanel>
					
	</div>
</h:body>
</html>
